package com.xyl.dao;

import com.xyl.entity.Activity;

import java.util.List;

public interface ActivityMapper {
    int deleteByPrimaryKey(Integer activityId);

    int insert(Activity record);

    int insertSelective(Activity record);

    Activity selectByPrimaryKey(Integer activityId);

    int updateByPrimaryKeySelective(Activity record);

    int updateByPrimaryKey(Activity record);

    List<Activity> selectByUserId(Integer userId);

    List<Activity> selectByTypeAndYear(Integer userId,String type, Integer year);

    Integer selectSumScore(Integer userId);
}